package com.example.demo.utils.pay;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@PropertySource("classpath:pay.properties")
@ConfigurationProperties(prefix = "pay")
@Component
public class PayBean {

	private Wx wx = new Wx();
	private ZFB zfb = new ZFB();

	@Data
	public  static  class Wx{
		private String appId;
		private String mchId;
		private String key;
	}

	@Data
	public static  class ZFB{
		private String appId;
		private String gateway_url;
		private String private_key;
		private String public_key;
	}
}
